<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <title>用户登录</title>
    <#include "links.ftl">
    <script>
        var sendSmsUrl = 'http://122.114.5.206:7070/snd/sms/opt=query&fid=login'
    </script>
</head>

<body>
<!--导航-->
    <#include "header.ftl">
<div class="login_user">
    <div class="user_info">
        <div class="logo">
            <img src="${basePath}/img/icon/logo-max.png">
        </div>
        <div class="content">
            <form action="/user/manager/user/login" method="POST" id="form">
                <#if error??>
                    <div>
                         <#if error??>
                             <p class="error">${error!}</p>
                         </#if>
                         <#if message??>
                             <p class="message">${message!}</p>
                         </#if>
                    </div>
                </#if>
                <div class="item">
                    <label class="phone"></label>
                    <input class="input" id="phone" name="phone" type="number" placeholder="手机号码">
                </div>
                <div class="item">
                    <label class="security"></label>
                    <input class="input" id="code" name="code" maxlength="6" placeholder="输入验证码">
                    <button id="security_code" class="security_code" type="button">获取验证码</button>
                </div>
                <div class="item">
                    <label class="pwd"></label>
                    <input class="input" type="password" id="pwd" name="pwd" placeholder="密码">
                </div>
            </form>
        </div>
        <div class="save">
            <button onclick="login()">登录</button>
        </div>
        <div class="go">
            <a href="/home/update-pwd">忘记密码？</a>
            <a class="register" href="/home/register">去注册？</a>
        </div>
    </div>
</div>
<!--底部-->
    <#include "footer.ftl">
<#--验证码js-->
    <#include "security_code.ftl">
</body>
</html>